package com.sie.demo.entity;

import lombok.Data;

import java.util.List;

/**
 * @author liaozhifeng
 * @date 2021/7/27 10:26
 * @Version 1.0
 */
@Data
public class RetResult<T> {
    public int code;


    private String message;

    private T data;

    private String token;

    private List list;



    public RetResult<T> setCode(RetCode retCode) {
        this.code = retCode.code;
        return this;
    }

    public int getCode() {
        return code;
    }

    public RetResult<T> setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public RetResult<T> setMessage(String msg) {
        this.message = msg;
        return this;
    }
    public String getToken() {
        return token;
    }

    public RetResult<T> setToken(String token) {
        this.token = token;
        return this;
    }
    public RetResult<T> setList(List list) {
        this.list = list;
        return this;
    }

    public T getData() {
        return data;
    }

    public RetResult<T> setData(T data) {
        this.data = data;
        return this;
    }
}
